package com.zy.edu.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.zy.edu.bean.Course;
import com.zy.edu.bean.CourseChapterHomeworkStu;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.edu.bean.InputParam;
import com.zy.edu.bean.StatsAbility;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-08-26
 */
public interface CourseChapterHomeworkStuDao extends BaseMapper<CourseChapterHomeworkStu> {

    void updateAllStatus(String id);

    List<CourseChapterHomeworkStu> getByStuId(Pagination pagination,
                               @Param("inputParam") InputParam inputParam);
    List<CourseChapterHomeworkStu> getByClsId(Pagination pagination,
                               @Param("inputParam") InputParam inputParam);

    void deleteByHkId(@Param("id") String id,@Param("clsId")String clsId);

    StatsAbility getAbility(String id);
}
